﻿using Super_Management_Mayhem.Content.Spritesheet;
using Transformable_Engine_v2.Engine.Animation.ColorAnimation;
using Transformable_Engine_v2.Engine.Animation.FrameAnimation;
using Transformable_Engine_v2.Engine.Animation.PositionAnimation;
using Transformable_Engine_v2.Engine.Animation.Trajectory;
using Transformable_Engine_v2.Engine.GameObjects.Containers;
using Transformable_Engine_v2.Engine.Helper;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Super_Management_Mayhem.Screens.Playing.Items
{
    public class WarpStar : ImageContainer
    {
         public WarpStar(TE_Vector2 scale)
         {
             Sprite = ItemSheet.GetSprite(ItemSheet.WarpStar.Star0);
             Origin = TE_Rectangle.Alignment.CenterMiddle;
             Scale = scale;
             AddAnimations(new PositionAnimation(new LinearEasing(), new TE_Vector2(0, -2), 2000, true, 0));
             AddAnimations(new ColorAnimation(new LinearEasing(), Transformable_Engine_v2.Engine.Graphics.Color.Transparent, 1500, false, 500));
             AddAnimations(new FrameAnimation(new Content.Animations.WarpStar()));
             Die(2000);
         }
    }
}